// 积分相关接口
import http from "../common/http.js";

export default {
  // 获取联盟订单列表
  getOrderList: (data) => {
    return http.GET("/saas/league-order-list", data);
  },
  // 判断是否可以跳转返现小程序
  checkCanWithDraw: (data) => {
    return http.GET("/saas/check", data);
  },
  // 提现列表
  getWithDrawList: (data) => {
    return http.GET("/saas/cash-list", data);
  },

  // 提交提现申请
  submitWithDraw: (data, needLoading) => {
    return http.POST("/saas/cash-commit", data, needLoading);
  },
  
  // 获取预设关键词
  searchKeyword: (data) => {
	  return http.GET("/saas/search-keyword", data);
  },
  
  // 添加浏览历史
  addHistory: (data) => {
  	  return http.POST("/saas/add-history", data);
  },
  
  // 获取浏览历史
  getHistory: (data) => {
  	  return http.GET("/saas/get-history", data);
  },
};
